package com.lap.auth.application.api.command;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@Schema(description = "上报Api命令")
public class UploadApiCmd {

  @NotEmpty(message = "{api.module.required}")
  @Length(max = 128, message = "{api.module.max.length}")
  @Schema(description = "所属模块")
  private String module;

  @NotEmpty(message = "{api.name.required}")
  @Length(max = 64, message = "{api.name.max.length}")
  @Schema(description = "模块名称")
  private String name;

  @NotNull(message = "{api.viewType.required}")
  @Schema(description = "模块类型")
  private Integer viewType;
}
